export default class MerchantInfo{
    public static STATUS_DEFAULT = 1;
    public static STATUS_WAIT = 2;
    public static STATUS_PASS = 3;
    public static STATUS_REFUSE = 4;
    id:number;
    name:string='';
    location:string;
    address:string='';
    phone:string='';
    la:number;
    lo:number;
    status:number=0;
    joinTime:string='';
    cpName:string;
    uid:number=0;

    public static getStatusDesc(status:number){
        if(status==MerchantInfo.STATUS_DEFAULT){
            return '未申请';
        }
        if(status==MerchantInfo.STATUS_WAIT){
            return '申请中';
        }
        if(status==MerchantInfo.STATUS_PASS){
            return '已通过';
        }
        if(status==MerchantInfo.STATUS_REFUSE){
            return '已拒绝';
        }
   
    }    
    
}